package com.shazhu.nongjt.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.shazhu.common.annotation.Excel;
import com.shazhu.common.core.domain.BaseEntity;

/**
 * 检查记录照片关联对象 njt_inspection_photo
 * 
 * @author shazhu
 * @date 2025-09-29
 */
public class NjtInspectionPhoto extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 检查记录ID */
    @Excel(name = "检查记录ID")
    private Long inspectionRecordId;

    /** 照片URL */
    @Excel(name = "照片URL")
    private String photoUrl;

    /** 照片名称 */
    @Excel(name = "照片名称")
    private String photoName;

    /** 照片大小 */
    @Excel(name = "照片大小")
    private Long photoSize;

    /** 上传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date uploadTime;

    /** 删除标记 */
    private Long delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setInspectionRecordId(Long inspectionRecordId) 
    {
        this.inspectionRecordId = inspectionRecordId;
    }

    public Long getInspectionRecordId() 
    {
        return inspectionRecordId;
    }

    public void setPhotoUrl(String photoUrl) 
    {
        this.photoUrl = photoUrl;
    }

    public String getPhotoUrl() 
    {
        return photoUrl;
    }

    public void setPhotoName(String photoName) 
    {
        this.photoName = photoName;
    }

    public String getPhotoName() 
    {
        return photoName;
    }

    public void setPhotoSize(Long photoSize) 
    {
        this.photoSize = photoSize;
    }

    public Long getPhotoSize() 
    {
        return photoSize;
    }

    public void setUploadTime(Date uploadTime) 
    {
        this.uploadTime = uploadTime;
    }

    public Date getUploadTime() 
    {
        return uploadTime;
    }

    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("inspectionRecordId", getInspectionRecordId())
            .append("photoUrl", getPhotoUrl())
            .append("photoName", getPhotoName())
            .append("photoSize", getPhotoSize())
            .append("uploadTime", getUploadTime())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("remark", getRemark())
            .toString();
    }
}
